.class Lcn/domob/android/ads/x;
.super Lcn/domob/android/ads/f;
.source "SourceFile"


# static fields
.field private static i:Lcn/domob/android/ads/H;


# direct methods
.method static constructor <clinit>()V
    .locals 2

    new-instance v0, Lcn/domob/android/ads/H;

    const-class v1, Lcn/domob/android/ads/x;

    invoke-virtual {v1}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;

    move-result-object v1

    invoke-direct {v0, v1}, Lcn/domob/android/ads/H;-><init>(Ljava/lang/String;)V

    sput-object v0, Lcn/domob/android/ads/x;->i:Lcn/domob/android/ads/H;

    return-void
.end method

.method public constructor <init>(Lcn/domob/android/ads/DomobAdView;Ljava/lang/String;)V
    .locals 2

    invoke-direct {p0, p1, p2}, Lcn/domob/android/ads/f;-><init>(Lcn/domob/android/ads/DomobAdView;Ljava/lang/String;)V

    sget-object v0, Lcn/domob/android/ads/x;->i:Lcn/domob/android/ads/H;

    const-string v1, "Init Splash controller."

    invoke-virtual {v0, v1}, Lcn/domob/android/ads/H;->b(Ljava/lang/String;)V

    return-void
.end method


# virtual methods
.method public a(Lcn/domob/android/ads/C;)V
    .locals 2

    iget-object v0, p0, Lcn/domob/android/ads/x;->a:Landroid/content/Context;

    check-cast v0, Landroid/app/Activity;

    new-instance v1, Lcn/domob/android/ads/x$1;

    invoke-direct {v1, p0}, Lcn/domob/android/ads/x$1;-><init>(Lcn/domob/android/ads/x;)V

    invoke-virtual {v0, v1}, Landroid/app/Activity;->runOnUiThread(Ljava/lang/Runnable;)V

    return-void
.end method

.method public a(Lcn/domob/android/ads/i;I)V
    .locals 5

    sget-object v0, Lcn/domob/android/ads/x;->i:Lcn/domob/android/ads/H;

    const-string v1, "An ad response is received by splash controller."

    invoke-virtual {v0, v1}, Lcn/domob/android/ads/H;->a(Ljava/lang/String;)V

    if-eqz p1, :cond_3

    const/4 v0, -0x1

    if-ne p2, v0, :cond_1

    sget-object v0, Lcn/domob/android/ads/x;->i:Lcn/domob/android/ads/H;

    const-string v1, "There is a cached ad witch is about to be show."

    invoke-virtual {v0, v1}, Lcn/domob/android/ads/H;->a(Ljava/lang/String;)V

    invoke-super {p0, p1, p2}, Lcn/domob/android/ads/f;->a(Lcn/domob/android/ads/i;I)V

    :cond_0
    :goto_0
    return-void

    :cond_1
    invoke-virtual {p1}, Lcn/domob/android/ads/i;->d()Lcn/domob/android/ads/i$b;

    move-result-object v0

    if-eqz v0, :cond_2

    sget-object v0, Lcn/domob/android/ads/x;->i:Lcn/domob/android/ads/H;

    const-string v1, "There is a new ad witch is about to be inserted into DB."

    invoke-virtual {v0, v1}, Lcn/domob/android/ads/H;->a(Ljava/lang/String;)V

    new-instance v0, Lcn/domob/android/ads/I;

    invoke-direct {v0}, Lcn/domob/android/ads/I;-><init>()V

    invoke-virtual {p1}, Lcn/domob/android/ads/i;->d()Lcn/domob/android/ads/i$b;

    move-result-object v1

    invoke-virtual {v1}, Lcn/domob/android/ads/i$b;->a()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcn/domob/android/ads/I;->a(Ljava/lang/String;)V

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {p1}, Lcn/domob/android/ads/i;->d()Lcn/domob/android/ads/i$b;

    move-result-object v2

    invoke-virtual {v2}, Lcn/domob/android/ads/i$b;->b()I

    move-result v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, "*"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {p1}, Lcn/domob/android/ads/i;->d()Lcn/domob/android/ads/i$b;

    move-result-object v2

    invoke-virtual {v2}, Lcn/domob/android/ads/i$b;->c()I

    move-result v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcn/domob/android/ads/I;->c(Ljava/lang/String;)V

    invoke-virtual {p1}, Lcn/domob/android/ads/i;->a()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcn/domob/android/ads/I;->b(Ljava/lang/String;)V

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v1

    invoke-virtual {p1}, Lcn/domob/android/ads/i;->d()Lcn/domob/android/ads/i$b;

    move-result-object v3

    invoke-virtual {v3}, Lcn/domob/android/ads/i$b;->r()I

    move-result v3

    mul-int/lit16 v3, v3, 0x3e8

    int-to-long v3, v3

    add-long/2addr v1, v3

    invoke-virtual {v0, v1, v2}, Lcn/domob/android/ads/I;->a(J)V

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v1

    invoke-virtual {v0, v1, v2}, Lcn/domob/android/ads/I;->b(J)V

    new-instance v1, Lcn/domob/android/ads/d;

    invoke-direct {v1}, Lcn/domob/android/ads/d;-><init>()V

    iget-object v2, p0, Lcn/domob/android/ads/x;->a:Landroid/content/Context;

    invoke-virtual {v1, v2, v0}, Lcn/domob/android/ads/d;->a(Landroid/content/Context;Lcn/domob/android/ads/I;)Z

    invoke-super {p0, p1, p2}, Lcn/domob/android/ads/f;->a(Lcn/domob/android/ads/i;I)V

    goto :goto_0

    :cond_2
    invoke-virtual {p1}, Lcn/domob/android/ads/i;->e()Lcn/domob/android/ads/i$c;

    move-result-object v0

    if-eqz v0, :cond_0

    sget-object v0, Lcn/domob/android/ads/x;->i:Lcn/domob/android/ads/H;

    const-string v1, "There is a error info response."

    invoke-virtual {v0, v1}, Lcn/domob/android/ads/H;->e(Ljava/lang/String;)V

    const-string v0, "DomobSDK"

    const-string v1, "Response contains error info. Error code is [%d] and error content is [%s]"

    const/4 v2, 0x2

    new-array v2, v2, [Ljava/lang/Object;

    const/4 v3, 0x0

    invoke-virtual {p1}, Lcn/domob/android/ads/i;->e()Lcn/domob/android/ads/i$c;

    move-result-object v4

    invoke-virtual {v4}, Lcn/domob/android/ads/i$c;->a()I

    move-result v4

    invoke-static {v4}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v4

    aput-object v4, v2, v3

    const/4 v3, 0x1

    invoke-virtual {p1}, Lcn/domob/android/ads/i;->e()Lcn/domob/android/ads/i$c;

    move-result-object v4

    invoke-virtual {v4}, Lcn/domob/android/ads/i$c;->b()Ljava/lang/String;

    move-result-object v4

    aput-object v4, v2, v3

    invoke-static {v1, v2}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    goto/16 :goto_0

    :cond_3
    invoke-super {p0, p1, p2}, Lcn/domob/android/ads/f;->a(Lcn/domob/android/ads/i;I)V

    goto/16 :goto_0
.end method

.method public b(Lcn/domob/android/ads/C;)V
    .locals 0

    return-void
.end method
